﻿/*
 * 替代无法创建或未配置的BusinessLogger避免异常或频繁判断
 * 用于用户或自身模块的日志记录
 * NullObject Pattern，创建型
 * 完全公开
 * Created By WangZg
 */
using System;
using System.Collections.Generic;
using System.Text;

namespace Octopus.Logging.Loggers
{
    public class NullLogger:IInnerLogger
    {
        private static NullLogger _Instance = new NullLogger();
        public static NullLogger Instance
        {
            get { return _Instance; }
        }


        #region IInnerLogger 成员

        public Octopus.Logging.Configuration.BusinessLogEntily ConfigEntily
        {
            get
            {
                return null;
            }
            set
            {                
            }
        }

        #endregion

        public void Info(string message, IDictionary<string, object> context = null)
        {
        }

        public void Debug(string message, IDictionary<string, object> context = null)
        {
        }

        public void Warning(string message, IDictionary<string, object> context = null)
        {
        }

        public void Error(string message, IDictionary<string, object> context = null)
        {
        }

        public void Error(string message, Exception err, IDictionary<string, object> context = null)
        {
        }



        public void Init()
        {
          
        }
    }
}
